package tech.aistar.design.decorator;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2022/7/26 8:58 上午
 */
public class BuDingTea implements Milk{

    private Milk milk;

    public BuDingTea(Milk milk){
        this.milk = milk;
    }

    @Override
    public String getBrand() {
        return "布丁奶茶";
    }

    @Override
    public double getPrice() {
        return milk.getPrice()+10.0d;
    }
}
